import req from "@/utils/request";
let { request } = req;

// 获取数字重庆人工智能底座配置
export function cqxczwyAiConfig(data) {
  return request("/sjw_department_control/ai/cqxczwyAiConfig", "post", {
    data,
  });
}

// 创建session
export function createSession(data, Authorization) {
  return request(
    "/xlm-gateway-ftlzsf/sfm-api-gateway/gateway/agent/api/createSession",
    "post",
    {
      data,
    },
    Authorization
  );
}

// 终止session
export function clearSession(data, Authorization) {
  return request(
    "/xlm-gateway-ftlzsf/sfm-api-gateway/gateway/agent/api/clearSession",
    "post",
    {
      data,
    },
    Authorization
  );
}

// 删除session
export function deleteSession(data, Authorization) {
  return request(
    "/xlm-gateway-ftlzsf/sfm-api-gateway/gateway/agent/api/deleteSession",
    "post",
    {
      data,
    },
    Authorization
  );
}
